home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectInput / DIConfig / cyclestr.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-08  |  989 b   |  32 lines

  1. //-----------------------------------------------------------------------------
  2. // File: cyclestr.h
  3. //
  4. // Desc: Implements a circular queue that provides space to hold a string
  5. //       without repeatedly allocating and deallocating memory.  This is
  6. //       only for short-term use such as outputting debug message to
  7. //       ensure that the same buffer is not used at more than one place
  8. //       simultaneously.
  9. //
  10. // Copyright (C) 1999-2001 Microsoft Corporation. All Rights Reserved.
  11. //-----------------------------------------------------------------------------
  12.  
  13. #ifndef __CYCLESTR_H__
  14. #define __CYCLESTR_H__
  15.  
  16.  
  17. LPTSTR getcyclestr();
  18. LPCTSTR SAFESTR(LPCWSTR);
  19. LPCTSTR SAFESTR(LPCSTR);
  20. LPCTSTR QSAFESTR(LPCWSTR);
  21. LPCTSTR QSAFESTR(LPCSTR);
  22. LPCTSTR BOOLSTR(BOOL);
  23. LPCTSTR RECTSTR(RECT &);
  24. LPCTSTR RECTDIMSTR(RECT &);
  25. LPCTSTR POINTSTR(POINT &);
  26. LPCTSTR GUIDSTR(const GUID &);
  27. LPCTSTR SUPERSTR(LPCWSTR);
  28. LPCTSTR SUPERSTR(LPCSTR);
  29.  
  30.  
  31. #endif //__CYCLESTR_H__
  32.